package com.mis.pos.entity;

import com.mis.pos.base.entity.BaseEntity;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @Description 订单实体
 * @Author yuxiang
 * @CreatedDate 2019/10/30 15:37
 */
@Entity
@Table(name = "sale")
@Data
public class SaleEntity extends BaseEntity implements Serializable {

    /**
     * 总金额
     */
    private Double count;

    /**
     * 描述信息
     */
    private String description;

    /**
     * 是否支付
     * 0代表未支付 1代表已支付
     */
    private int isPayed;

    public Double getCount() {
        return count;
    }

    public void setCount(Double count) {
        this.count = count;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public int getIsPayed() {
        return isPayed;
    }

    public void setIsPayed(int isPayed) {
        this.isPayed = isPayed;
    }



    public SaleEntity() {
    }

    public SaleEntity(Double count, String description, int isPayed) {
        this.count = count;
        this.description = description;
        this.isPayed = isPayed;
    }
}
